<?php use_stylesheet('teams.css') ?>
<h1>User standings List</h1>

<div id="teams">
<table class="teams">
  <thead>
    <tr>
      <th>Id</th>
      <th>User</th>
      <th>Pts</th>
	  <th>Nb Good</th>
	  <th>Nb Perfect</th>
      <th>Position</th>
      <th>Old position</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($user_standings as $user_standing): ?>
    <tr class="<?php echo fmod($i, 2) ? 'even' : 'odd' ?>">
      <td align="center"><a href="<?php echo url_for('user/show?id='.$user_standing->getId()) ?>"><?php echo $user_standing->getId() ?></a></td>
      <td align="center"><?php echo $user_standing->getUserProfile()->getUser()->getUsername() ?></td>
      <td align="center"><?php echo $user_standing->getPts() ?></td>
	  <td align="center"><?php echo $user_standing->getNbGood() ?></td>
	  <td align="center"><?php echo $user_standing->getNbPerfect() ?></td>
      <td align="center"><?php echo $user_standing->getPosition() ?></td>
      <td align="center"><?php echo $user_standing->getOldPosition() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>